#/bin/sh
#------------------------help information
if [ -z $1 ];
then
	echo "How to use:"
	echo "		$(basename $0)  'filename' "
	echo "		 search content in files  under current folder" 
	exit 0
fi


if [ -z $2 ];
then
grep -InR "$1" ./ --exclude "*svn*" --exclude "*cscope*"
else
grep -InR "$1" $2 --exclude "*svn*" --exclude "*cscope*"
fi
